<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	    <div id="app">
    	    <input type="text" name="" id="" v-model="val" />
    	    <!--保留几位小数-->
    	    <span>{{val | float(5)}}</span>
	    </div>
	    <script type="text/javascript" src="../lib/vue.min.js" ></script>
	    <script type="text/javascript" src="filter.js" ></script>
	    <script>
	        new Vue({
	            el:'#app',
	            data:{
	                val:''
	            }
	        });
	    </script>
	</body>
</html>
